# 函数的返回值为多个值时，结果为元组
def fun(num):
    odd=[]
    even=[]
    for i in num:
        if i%2:
            odd.append(i)
        else:
            even.append(i)
    return odd,even

lst=[10,29,65,46,26,8,1,3]
print(fun(lst))
